home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" > <background> <id>13784</id> <filler1>0</filler1> <bitmap>BMAP_13962.pbm</bitmap> <cantDelete> <true /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <link rel="stylesheet" type="text/css" href="stylesheet_3279.css" /> <part> <id>83</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>0</left> <top>251</top> <right>256</right> <bottom>263</bottom> </rect> <style>transparent</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Geneva</font> <textSize>9</textSize> <textStyle>plain</textStyle> <name>--- More ---</name> <script>on mouseUp pass mouseUp end mouseUp</script> </part> <part> <id>1</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <true /> </fixedLineHeight> <autoTab> <true /> </autoTab> <lockText> <true /> </lockText> <rect> <left>6</left> <top>7</top> <right>195</right> <bottom>44</bottom> </rect> <style>transparent</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Palatino</font> <textSize>14</textSize> <textStyle>bold</textStyle> <textHeight>16</textHeight> <name>Title</name> <script></script> </part> <part> <id>7</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>187</left> <top>269</top> <right>212</right> <bottom>288</bottom> </rect> <style>rectangle</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>20001</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Prev</name> <script>on mouseUp if word 2 of bkgnd field "Pages" is 1 then -- Going to previous section, so show visual effect. visual effect scroll right fast end if go previous card if the mouse is down then exit mouseUp -- trap double click end mouseUp</script> </part> <part> <id>2</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <true /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>178</left> <top>10</top> <right>249</right> <bottom>26</bottom> </rect> <style>transparent</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>right</textAlign> <font>Geneva</font> <textSize>9</textSize> <textStyle>plain</textStyle> <textHeight>12</textHeight> <name>Pages</name> <script></script> </part> <part> <id>60</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>13</left> <top>269</top> <right>143</right> <bottom>288</bottom> </rect> <style>rectangle</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Palatino</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name></name> <script></script> </part> <part> <id>74</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>38</left> <top>269</top> <right>143</right> <bottom>288</bottom> </rect> <style>transparent</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Palatino</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Main Topics</name> <script></script> </part> <part> <id>76</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>13</left> <top>269</top> <right>57</right> <bottom>288</bottom> </rect> <style>transparent</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>20000</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Return Arrow</name> <script></script> </part> <part> <id>75</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>13</left> <top>269</top> <right>143</right> <bottom>288</bottom> </rect> <style>transparent</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Palatino</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Return To Topics</name> <script>on mouseUp push card goMainTopics end mouseUp</script> </part> <part> <id>90</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <true /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>6</left> <top>42</top> <right>255</right> <bottom>256</bottom> </rect> <style>transparent</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Palatino</font> <textSize>12</textSize> <textStyle>plain</textStyle> <textHeight>14</textHeight> <name>Help Text</name> <script>on mouseUp checkActiveText end mouseUp</script> </part> <part> <id>91</id> <type>field</type> <visible> <false /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <true /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>12</left> <top>49</top> <right>239</right> <bottom>234</bottom> </rect> <style>transparent</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Palatino</font> <textSize>12</textSize> <textStyle>plain</textStyle> <textHeight>14</textHeight> <name>Help Text B</name> <script>on mouseUp checkActiveText end mouseUp</script> </part> <part> <id>8</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>218</left> <top>269</top> <right>243</right> <bottom>288</bottom> </rect> <style>rectangle</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>20003</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Next</name> <script>on mouseUp if word 2 of bkgnd field "Pages" is word 4 of bkgnd field "Pages" then -- Only show the visual effect when you go to a new section. visual effect scroll left fast end if go next card if the mouse is down then exit mouseUp -- trap double click end mouseUp</script> </part> <part> <id>86</id> <type>field</type> <visible> <false /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <true /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>193</left> <top>247</top> <right>256</right> <bottom>264</bottom> </rect> <style>rectangle</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Geneva</font> <textSize>9</textSize> <textStyle>plain</textStyle> <textHeight>12</textHeight> <name>About this card</name> <script>-- For information about the contents of this field, see the -- beginning of the script of this background. on mouseUp hide me end mouseUp</script> </part> <part> <id>97</id> <type>button</type> <visible> <false /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>6</left> <top>43</top> <right>250</right> <bottom>63</bottom> </rect> <style>opaque</style> <showName> <true /> </showName> <highlight> <true /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Palatino</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Glossary</name> <script></script> </part> <part> <id>98</id> <type>button</type> <visible> <false /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>11</left> <top>46</top> <right>27</right> <bottom>60</bottom> </rect> <style>transparent</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>3071</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Close box</name> <script>on mouseDown set the icon of me to "Clicked Close Box" end mouseDown on mouseUp set the icon of me to "Close Box" glossaryObjects false,"zoom in" end mouseUp on mouseStillDown if the mouseLoc is not within the rect of me then set the icon of me to "Close Box" else set the icon of me to "Clicked Close Box" end mouseStillDown </script> </part> <part> <id>99</id> <type>field</type> <visible> <false /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <true /> </sharedText> <fixedLineHeight> <true /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>6</left> <top>63</top> <right>250</right> <bottom>261</bottom> </rect> <style>rectangle</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <true /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Palatino</font> <textSize>12</textSize> <textStyle>plain</textStyle> <textHeight>16</textHeight> <name>Glossary Item</name> <script></script> </part> <content> <layer>background</layer> <id>99</id> <text><span class="style93">aveform</span><span class="style62"> A visual representation of sound which shows the volume of sound over time. The volume is shown on the vertical axis and time is shown on the horizontal axis.</span></text> </content> <name>Content</name> <script>∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞ About This Background ∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞ -- System Messages in this background script: -- openBackground, closeBackground, openCard, closeCard, mouseUp -- Message Handlers in this background script: -- setCheckMark, goGray, goMainTopics, checkActiveText, printTopic, -- showGlossaryItem, formatGlossaryItem -- Function Handlers in this background script: -- endOrMore, currentTopicInfo, getGlossaryItem -- Hidden Objects in this background -- background field "About this card" ---- line 1 item 1 is an integer, the line number of this card's ---- main topic (in the field "Main Topics" in the background ---- "Main Topics"). ---- line 1 item 2 is an integer, the line number of this card's ---- sub-topic (in the field "Section" in the background ---- "Main Topics"). -- Three background buttons and fields make up the Glossary objects: -- the bkgnd button "Close box", bkgnd button "Glossary", and -- bkgnd field "Glossary Item". These objects appear when you click on -- group text. This scheme assumes you don't have card -- buttons or fields on the same card as some group text. (If you do, -- the the card buttons and fields will appear at the same time as -- the glossary.) ∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞ ------•• SYSTEM MESSAGES ••------ on openBackground global AudioHelpMenu setCheckMark true pass openBackground end openBackground on closeBackground global AudioHelpMenu setCheckMark false pass closeBackground end closeBackground on openCard set name of bkgnd button id 83 to endOrMore() pass openCard end openCard on closeCard -- Close the glossary if it is open. if visible of bkgnd field "Glossary Item" then glossaryObjects false,"zoom in" end if pass closeCard end closeCard on mouseUp -- Close the glossary if it is open. if the visible of bkgnd button "Close box" then glossaryObjects false,"zoom in" end if end mouseUp ------•• Function to handle the "End" or "Continue" button. ••------ function endOrMore -- ∆ Indicate if this is the last card of a topic, or if there are -- more cards on this topic. if word 2 of bkgnd field "Pages" = word 4 of bkgnd field "Pages" then -- This is the last card of a topic. return "----- End of Topic -----" -- ∆ else -- There are additional cards on this topic. return "--- More ---" -- ∆ end if end endOrMore ------•• MESSAGE HANDLERS ••------ on setCheckMark boolean -- Set the menu bar for this background. global AudioHelpMenu setLocationCheckMark 2,boolean if there is a menu AudioHelpMenu then if there is a menuItem 6 in menu AudioHelpMenu then if boolean then enable menuItem 6 of menu AudioHelpMenu else disable menuItem 6 of menu AudioHelpMenu end if end if end setCheckMark on goMainTopics -- Go to the appropriate main topics card. visual effect zoom in lock screen get currentTopicInfo() put item 1 of line 1 of it into sectionNumber put item 2 of line 1 of it into topicNumber if sectionNumber is empty then go card 1 else go card sectionNumber send openCard to this background -- Highlight the current topic. if topicNumber is not empty then put topicNumber into nextLine if line (topicNumber+1) of bkgnd field "Section" contains tab then -- This indicates that the section name is on two lines, so -- select both lines. add 1 to nextLine end if unlock screen selectWholeLine topicNumber,the name of bkgnd field "Section",nextLine end if end if end goMainTopics function currentTopicInfo -- This function accesses the topic-specific information -- for the current topic. Line 1 contains a two-item record -- of the current section and topic number. if there is no background field "About this card" then return empty -- ∆ Depends on "Card X of Y" format in the field put word 2 of bkgnd field "Pages" into currentPage get the number of this card put bkgnd field "About This Card" ¬ of card (it - currentPage + 1) into aboutThisCard return aboutThisCard end currentTopicInfo on checkActiveText -- If the text clicked is active, then show appropriate glossary info. put the clickText into thePhrase put the clickChunk into theChunkOfText get the textStyle of theChunkOfText if (thePhrase is empty) or (thePhrase is return) or ¬ ("group" is not in the textStyle of theChunkOfText) then exit checkActiveText end if set cursor to watch select theChunkOfText -- wait 10 showGlossaryItem thePhrase select empty end checkActiveText on printTopic -- Print cards from the current topic. put the number of this card into cardNumber put 1 into total if there is a bkgnd field "Pages" then -- ∆ This assumes that the second word of the bkgnd field "Pages" -- is the card number in this topic, and that the fourth word -- is the number of cards in this topic. subtract (word 2 of bkgnd field "Pages" - 1) from cardNumber put word 4 of bkgnd field "Pages" into total end if lock screen set lockMessages to true push card go card cardNumber open printing repeat total times -- Print only the content part of the card (not the navigation -- buttons at the bottom of the card). print card from 0,0 to 255,253 go next card of this bkgnd end repeat close printing pop card unlock screen end printTopic ------•• SCRIPTS FOR HANDLING THE GLOSSARY ••------ on showGlossaryItem glossaryWord -- Show the Glossary field, using the appropriate text. -- glossaryWord is glossary word to be defined. set cursor to watch lock screen glossaryObjects true put empty into bkgnd field "Glossary Item" put getGlossaryItem(glossaryWord) into bkgnd field "Glossary Item" if bkgnd field "Glossary Item" is empty then -- The grouped word isn't actually in the glossary (this shouldn't -- happen). beep glossaryObjects false exit showGlossaryItem end if formatGlossaryItem unlock screen with visual effect zoom out end showGlossaryItem on glossaryObjects boolean,theEffect -- Hide or show the objects needed for the glossary. if theEffect is not empty then lock screen set visible of bkgnd button "Glossary" to boolean -- ∆ The button name. set visible of bkgnd button "Close box" to boolean -- ∆ The button name. set visible of bkgnd field "Glossary Item" to boolean set the showPict of this card to not boolean if theEffect is not empty then unlock screen with theEffect end glossaryObjects function getGlossaryItem glossaryWord -- Given a glossary word, return the entire glossary item. -- (A glossary item is the glossary word and its definition.) put offset("*" & glossaryWord,card field "Glossary" of card "Overview")¬ into beginOffset -- beginOffset is an integer, the first character of the glossary item. if beginOffset is 0 then return empty add 1 to beginOffset -- to disregard the * character put number of chars in card field "Glossary" of card "Overview" ¬ into charsInGlossary -- Get the offset from the beginning of the requested glossary item put offset(return & "*",char beginOffset to ¬ charsInGlossary in card field "Glossary" of card "Overview") ¬ into endOffset if endOffset is 0 then -- This is the last glossary item. put charsInGlossary into endOffset else -- put the char length of the requested glossary item into endOffset. put beginOffset + endOffset - 2 into endOffset end if return char beginOffset to endOffset ¬ of card field "Glossary" of card "Overview" end getGlossaryItem on formatGlossaryItem -- Set the visual format of the glossary item field. -- Delete the first line if it is empty. if line 1 of bkgnd field "Glossary Item" is empty then delete line 1 of bkgnd field "Glossary Item" end if -- Delete the last line if it is empty. if last line of bkgnd field "Glossary Item" is empty then delete last line of bkgnd field "Glossary Item" end if set textStyle of line 1 of bkgnd field "Glossary Item" to bold end formatGlossaryItem</script> </background>